package com.iotek.entity;

public class Order {
	//声明一些属性
	private int orderId;
	private int detailsId;
	private String orderNumber;
	private String orderState;
	private String orderTotal;
	private int customerId;
	private String creatTime;
	
	//无参的构造器
	public Order() {
		super();
	}

	//全参的构造器
	public Order(int orderId, int detailsId, String orderNumber, String orderState, String orderTotal, int customerId,
			String creatTime) {
		super();
		this.orderId = orderId;
		this.detailsId = detailsId;
		this.orderNumber = orderNumber;
		this.orderState = orderState;
		this.orderTotal = orderTotal;
		this.customerId = customerId;
		this.creatTime = creatTime;
	}
	
	//无主键id的构造器
	public Order(int detailsId, String orderNumber, String orderState, String orderTotal, int customerId,
			String creatTime) {
		super();
		this.detailsId = detailsId;
		this.orderNumber = orderNumber;
		this.orderState = orderState;
		this.orderTotal = orderTotal;
		this.customerId = customerId;
		this.creatTime = creatTime;
	}
	//属性的设置和获取
	public int getOrderId() {
		return orderId;
	}
	public void setOrderId(int orderId) {
		this.orderId = orderId;
	}
	public int getDetailsId() {
		return detailsId;
	}
	public void setDetailsId(int detailsId) {
		this.detailsId = detailsId;
	}
	public String getOrderNumber() {
		return orderNumber;
	}
	public void setOrderNumber(String orderNumber) {
		this.orderNumber = orderNumber;
	}
	public String getOrderState() {
		return orderState;
	}
	public void setOrderState(String orderState) {
		this.orderState = orderState;
	}
	public String getOrderTotal() {
		return orderTotal;
	}
	public void setOrderTotal(String orderTotal) {
		this.orderTotal = orderTotal;
	}
	
	public String getCreatTime() {
		return creatTime;
	}
	public void setCreatTime(String creatTime) {
		this.creatTime = creatTime;
	}
	public int getCustomerId() {
		return customerId;
	}
	public void setCustomerId(int customerId) {
		this.customerId = customerId;
	}
	@Override
	public String toString() {
		return "Order [orderId=" + orderId + ", detailsId=" + detailsId + ", orderNumber=" + orderNumber
				+ ", orderState=" + orderState + ", orderTotal=" + orderTotal + ", customerId=" + customerId
				+ ", creatTime=" + creatTime + "]";
	}
	
	
}
